using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class PersonPhotosSummary : FlickrObject
    {
        public PersonPhotosSummary():base(){}
        public PersonPhotosSummary(FlickrConnection connection) : base(connection){}
        
        [XmlIgnore()]
        public DateTime FirstDate
        {
            get { return Utilities.UnixTimestampToDate(firstdate); }
        }

        [XmlIgnore()]
        public DateTime FirstTakenDate
        {
            get { return Utilities.UnixTimestampToDate(firstdate); }
        }

        [XmlElement("count", Form=XmlSchemaForm.Unqualified)]
        public int PhotoCount;

        [XmlElement("firstdate", Form=XmlSchemaForm.Unqualified)]
        public string firstdate;

        [XmlElement("firsttakendate", Form=XmlSchemaForm.Unqualified)]
        public string firsttakendate;
    }
}